package com.example.generator.mapper;

import com.example.generator.model.Book;
import com.example.modules.book.BookVO;
import com.example.utils.Pagination;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BookMapper extends Mapper<Book> {
    List<BookVO> selectFetchAll(Pagination<BookVO> pagination);

    void collect(Integer id, Integer userId);

    long isCollect(Integer id, Integer userId);

    void collectCancel(Integer bookId, Integer userId);
}